package day14;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEstun {
    public static void main(String[] args) {
        for (int i = 0; i < 4; i++) {
            new Thread(){
                @Override
                public void run() {
                    System.out.println(SingleTon.get());
                    System.out.println(SingleTon.get());
                }
            }.start();
        }
//        Sun s=Sun.get();
//        Sun s2=Sun.get();
//        Sun s3=Sun.get();
//        System.out.println(s==s2);
//        System.out.println(s==s3);
    }
}
